-- GENERATED SPELL FOR [Subterranean Diemetradon] --


function spell0_13323(pUnit, Event) --@Sonic Burst,Self--
pUnit:FullCastSpellOnTarget(8281,pUnit)
pUnit:RegisterEvent('Sorts_13323', 6321, 1)
end

function Sorts_13323(pUnit, Event)
local choix_sorts_13323 = math.random(0, 0)
if choix_sorts_13323 == 0 then
pUnit:RegisterEvent('spell0_13323', 1, 1)
end
end

function mob13323_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_13323', math.random(1500, 3000), 1)
end

function mob13323_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob13323_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob13323_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(13323, 1, 'mob13323_Action')
RegisterUnitEvent(13323, 2, 'mob13323_Leave')
RegisterUnitEvent(13323, 3, 'mob13323_Kill')
RegisterUnitEvent(13323, 4, 'mob13323_Die')
